package com.itheima.thisdemo;

/**
 * @author jiangxun
 * @date 11-15-2024
 */
public class StudentDemo {
    public static void main(String[] args) {
        // 目标：认识this关键字，搞清楚this关键字的应用场景
        Student student01 = new Student();
        student01.name = "小明";
        student01.print();
        System.out.println(student01);
        System.out.println("-------------------");

        Student student02 = new Student();
        student02.name = "小强";
        student02.print();
        System.out.println(student02);
        System.out.println("-------------------");

        Student student03 = new Student();
        student03.name = "小朱";
        student03.printHobby("足球");
        System.out.println(student03);
    }
}
